
package com.idealighter.game.games.weishuwu.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.weishuwu.manager.WeishuwuMgr;
import com.idealighter.game.games.weishuwu.message.ReqBetMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;

/**
 * .
 *
 */
@ReqMsgHandler(522108)
public class ReqBetHandler implements ReqMessageHandler {

  @Inject
  private WeishuwuMgr weishuMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqBetMsg msg = (ReqBetMsg) message;
    weishuMgr.playerBet(player, msg.getArea(), msg.getChips());

    return null;
  }
}
